{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}

{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<form method="POST" action="" name="listForm">
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1" width="100%">
			<tr>
				<th width="13%">
					<input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
					<a href="javascript:listTable.sort('topic_id'); "> 编号</a>{$sort_topic_id}
				</th>
				<th width="26%">
					<a href="javascript:listTable.sort('title'); ">专题名称</a>{$sort_title}
				</th>
				<th width="13%">
					<a href="javascript:listTable.sort('start_time'); ">开始时间</a>{$sort_start_time}
				</th>
				<th width="13%">
					<a href="javascript:listTable.sort('end_time'); ">结束时间</a>{$sort_end_time}
				</th>
				<th width="">操作</th>
			</tr>
			<volist name="topic_list" id="topic">
			<tr>
				<td>
					<span><input value="{$topic.topic_id}" name="checkboxs[]" type="checkbox">{$topic.topic_id}</span>
				</td>
				<td>{$topic.title}</td>
				<td>{$topic.start_time}</td>
				<td>{$topic.end_time}</td>
				<td align="center">
					<a href="#" title="查看" target="_blank">查看</a>
					<a href="__URL__/mod_topic?topic_id={$topic.topic_id}" title="编辑">编辑</a>
					<a href="javascript:;"  title="{$lang.drop}" onclick="listTable.remove({$topic.topic_id},delete_topic_confirm,'delete');">删除</a>
					<a href="#" >发布到广告</a>
					<a href="#" title="发布到Flash播放列表" >发布到Flash播放列表</a>
				</td>
			</tr>
			</volist>
		</table>
	</div>
</form>

<script type="text/javascript" language="JavaScript">
	onload = function(){
		// 开始检查订单
		startCheckOrder();
		document.forms['listForm'].reset();
	}

	document.getElementById("btnSubmit").onclick = function(){
		if (confirm(delete_topic_confirm)){
			document.forms["listForm"].action = "topic.php?act=delete";
			return;
		}
		else{
			return false;
		}
	}
</script>